from apps.users.models import User #用户
from django.contrib.auth.models import Group #组
from django.contrib.auth.models import Permission #权限
from rest_framework.serializers import ModelSerializer
from django.contrib.auth.models import ContentType

class PermissionModelSerializer(ModelSerializer):
    """权限表序列化器"""

    class Meta:
        model=Permission
        fields="__all__"

class ContentTypeModelSerializer(ModelSerializer):
    """权限类型表序列化器"""

    class Meta:
        model=ContentType
        fields=('id','name')



